@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

@font-face
{
	font-family: 'youshe';
	src: url('https://iotx.oss-cn-beijing.aliyuncs.com/platform-gz/youshe.ttf')
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
  font-variant: tabular-nums;
  font-feature-settings: "tnum";
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}
.mb20{
  margin-bottom: 24px;
}

::-webkit-scrollbar-track-piece {
  background: none;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  background: #12223D;
  border-radius: 20px;
}


.dv-scroll-board{
  .header{
    .header-item{
      color: rgba(21, 154, 255, 0.8);
      font-size: 14px;
    }
  }
  .rows{
    .row-item{
      color: #D0DEEE !important;
    }
  }
}



// datav组件
.component-wrap{
  position: absolute;
  height: 100%;
  top: 100px;
  right: 0;
  width: 500px;
  background: rgba(0,0,0,0.65);
  border-radius: 6px 0px 0px 6px;
  padding: 20px;
  overflow-y: auto;
  z-index: 99;
}
.datav-box{
  h4{
    font-family: 'youshe',Microsoft YaHei;
    color: #fff;
    font-size: 22px;
    font-weight: normal;
    margin:0 0 20px 0;
  }
}
.line{
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,0.1);
  margin-bottom: 25px;
}
//浅色
.light{
  height: 100%;
  .component-wrap{
    height: calc(100vh - 60px);
    top: 60px;
    width: 450px;
    background: #fff;
    border-radius: 0;
  }
  .datav-box{
    h4{
      font-family: Microsoft YaHei;
      color: #000;
      font-size: 20px;
      margin:0 0 20px 0;
      display: flex;
      align-items: center;
      &::before{
        content: '';
        width: 4px;
        height: 20px;
        background: #2586F2;
        margin-right: 8px;
      }
    }
  }
  .line{
    height: 1px;
    width: 100%;
    background: rgba(0,0,0,0.05);
    margin-bottom: 25px;
  }

  .dv-scroll-board{
    .header{
      .header-item{
        color: rgba(51, 51, 51, 1);
        font-size: 14px;
      }
    }
    .rows{
      .row-item{
        color: rgba(36, 43, 54, 1) !important;
        border-bottom: 1px rgba(231, 231, 231, 1) solid !important;
      }
    }
  }
}
